home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh -f
-
- # NEXTSTEPDeveloperPatch.post_install
-
- echo ""
-
- echo -n " Checking compiler ... "
- if ( ! -x /bin/cc ) then
- echo "Couldn't find /bin/cc. /bin/cc (in the DeveloperTools package) is required for building precompiled headers."
- exit 1
- endif
- echo "OK."
-
- set arch_type = `/usr/bin/arch`
- if ( ${arch_type} == "sparc" ) then
- set RC_CFLAGS = "-arch m68k -arch i386 -arch hppa -arch sparc"
- else if ( ${arch_type} == "hppa" ) then
- set RC_CFLAGS = "-arch m68k -arch i386 -arch hppa"
- else
- set RC_CFLAGS = "-arch m68k -arch i386"
- endif
-
- set headers = ( ansi/ansi.h bsd/libc.h mach/mach.h mach/cthreads.h objc/Object.h appkit/appkit.h dbkit/dbkit.h 3Dkit/3Dkit.h indexing/indexing.h )
- foreach hdr ( ${headers} )
- set header = /NextDeveloper/Headers/${hdr}
- set precomp = `echo ${header} | /bin/sed -e 's/h$/p/'`
- if ( -f ${header} ) then
- echo -n " Precompiling ${header} (this can take a while)... "
- /bin/cc -precomp ${header} -o ${precomp} ${RC_CFLAGS} || exit 1
- echo "OK."
- endif
- end
-
- echo -n " Indexing /NextDeveloper/Headers (this can take a while)... "
- chdir /NextDeveloper/Headers
- /bin/rm -f .index.store || exit 1
- /usr/bin/ixbuild -fs -LEnglish || exit 1
- echo "OK."
-
- echo -n " Indexing /NextLibrary/Documentation/NextDev (this can take a while)... "
- chdir /NextLibrary/Documentation/NextDev
- /bin/rm -f .index.store || exit 1
- /usr/bin/ixbuild -fs -LEnglish || exit 1
- echo "OK."
-
- echo " ... done."
- exit 0
-